import request from '@/utils/request'

// 查询责任书打分列表
export function listZrsDfMainDept(query) {
  return request({
    url: '/business/ZrsDfMain/deptList',
    method: 'get',
    params: query
  })
}
// 查询责任书打分列表
export function listZrsDfMainUser(query) {
  return request({
    url: '/business/ZrsDfMain/userList',
    method: 'get',
    params: query
  })
}

// 查询责任书打分列表
export function listZrsDf(query) {
  return request({
    url: '/business/ZrsDfMain/listZrsDf',
    method: 'get',
    params: query
  })
}
// 查询责任书打分详细
export function getZrsDfMain(zrsMainId) {
  return request({
    url: '/business/ZrsDfMain/' + zrsMainId,
    method: 'get'
  })
}
// 查询责任书打分详细
export function getZrsDfZbInfo(zrsMainId) {
  return request({
    url: '/business/ZrsDfMain/getZrsDfZbInfo/' + zrsMainId,
    method: 'get'
  })
}

// 新增责任书打分
export function addZrsDfMain(data) {
  return request({
    url: '/business/ZrsDfMain',
    method: 'post',
    data: data
  })
}
// 新增责任书打分
export function saveZrsDf(data) {
  return request({
    url: '/business/ZrsDfMain/saveZrsDf',
    method: 'post',
    data: data
  })
}

// 汇算 责任书打分
export function settleZrsDf(data) {
  return request({
    url: '/business/ZrsDfMain/settleZrsDf',
    method: 'post',
    data: data
  })
}

export function saveZrsDfVeto(data) {
  return request({
    url: '/business/ZrsDfMain/saveZrsDfVeto',
    method: 'post',
    data: data
  })
}


// 修改责任书打分
export function updateZrsDfMain(data) {
  return request({
    url: '/business/ZrsDfMain',
    method: 'put',
    data: data
  })
}

// 删除责任书打分
export function delZrsDfMain(zrsMainId) {
  return request({
    url: '/business/ZrsDfMain/' + zrsMainId,
    method: 'delete'
  })
}
